<template>
  <div class="wrapper">
  <swiper :options="swiperOption">
    <swiper-slide v-for="item of swiperList" :key="item.num">
      <img class="swiper-img" :src="item.imgUrl" />
    </swiper-slide>
    <div class="swiper-pagination"  slot="pagination"></div>
  </swiper>
  </div>
</template>

<script>
export default {
  name: 'HomeSwiper',
  data: function () {
    return {
      swiperOption: {
        pagination: '.swiper-pagination',
        // loop: true
      },
      swiperList: [{
        num: '0001',
        imgUrl: 'https://imgs.qunarzz.com/sight/p0/1908/4e/4e82efecb2e8ade9a3.img.jpg_1190x550_9059919d.jpg'
      }, {
        num: '0002',
        imgUrl: 'https://mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/20209/9dbec1a468fd5c198be3a81600b30c5c.jpg_890x330_ecf160e3.jpg'
      }]
    }
  }
}
</script>

<style lang="stylus" scoped>
   .wrapper >>> .swiper-pagination-bullet-active
     background: #fff
   .wrapper
     overflow: hidden
     width: 100%
     height: 0
     padding-bottom: 33.25%
     background: #eaeaea
   .swiper-img
     width: 100%
</style>
